﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChessEngine.Engine
{
    internal struct Move
    {
        internal byte SourceCol;
        internal byte SourceRow;
        internal byte DestCol;
        internal byte DestRow;

        internal Move(byte sourceCol = 0, byte sourceRow = 0, byte destCol = 0, byte destRow = 0)
        {
            SourceCol = sourceCol;
            SourceRow = sourceRow;
            DestCol = destCol;
            DestRow = destRow;
        }

        internal void Unpack(out byte sourceCol, out byte sourceRow, out byte destCol, out byte destRow)
        {
            sourceCol = SourceCol;
            sourceRow = SourceRow;
            destCol = DestCol;
            destRow = DestRow;
        }
    }
}
